Skip to content

ci: Publish from a protected environment and pin actions - #266

Merged
khvn26 merged 3 commits into
mainfrom
ci/release-environment
Dec 4, 2026
Merged

khvn26 merged 3 commits into
mainfrom
ci/release-environment

Conversation

@khvn26

@khvn26 khvn26 commented Dec 4, 2026 •

Copy link
Copy Markdown
Member
  • Publishing now runs in the maven-central environment. Releases wait for approval from flagsmith-maintainers (no self-approval), and only v* tags can deploy to it.
  • Pins the remaining actions to commit SHAs. Renovate keeps them up to date.

The job still uses the repository secrets (OSSRH_TOKEN, OSSRH_GPG_SECRET_KEY, OSSRH_GPG_SECRET_KEY_PASSWORD) until scoped replacements are added to the maven-central environment, which take precedence over repository secrets with the same names. Then the repository secrets get deleted.

Contributes to ENG-1147

@khvn26
khvn26 requested a review from a team as a code owner December 4, 2026 14:24
@khvn26
khvn26 requested review from emyller and removed request for a team December 4, 2026 14:24

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 4 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread .github/workflows/codeql.yml Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 2 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Pins CI actions, but also routes Maven Central publishing through a protected environment and restricts publish tags to v*, changing release authorization and deployment policy; the approval-rule configuration is outside the diff.

Turn on auto-fix | Re-trigger cubic

@codspeed

codspeed Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 15 untouched benchmarks


Comparing ci/release-environment (f5f337c) with main (6a73efc)

Open in CodSpeed

@khvn26
khvn26 merged commit ed6a411 into main Dec 4, 2026
20 checks passed
@khvn26
khvn26 deleted the ci/release-environment branch December 4, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants